﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public partial class UserDepartment
    {
        public static User[] GetUsersOnDepartment(DAL.DataAccessLayer dc, Guid department_level)
        {

            var x = from user in dc.DataContext.UserDepartments
                    where user.Id.Equals(department_level)
                    select user.User;

            return x.ToArray<User>();

        }
    }
}
